﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;

namespace GUI.Tabs
{
    public class SetText
    {
        TextBlock block;

        public SetText(TextBlock block)
        {
            this.block = block;
        }

        public String Text { set {
            block.Dispatcher.BeginInvoke
            (
                (System.Action)(() =>
                {
                    block.Inlines.Clear();
                    block.Inlines.Add(value);
                }
            ));
        } }
    }
}
